package org.dromara.business.domain.bo;

import org.dromara.business.domain.BusOutsource;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 资源业务对象 bus_outsource
 *
 * @author Lion Li
 * @date 2024-12-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusOutsource.class, reverseConvertGenerate = false)
public class BusOutsourceBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 订阅id
     */
    @NotBlank(message = "订阅id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subscribeId;

    /**
     * 订阅url
     */
    @NotBlank(message = "订阅url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String selfUrl;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 帖子url
     */
    @NotBlank(message = "帖子url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String postUrl;

    /**
     * 发布时间
     */
    @NotNull(message = "发布时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date publishTime;

    /**
     * 作者
     */
    @NotBlank(message = "作者不能为空", groups = { AddGroup.class, EditGroup.class })
    private String authorName;

    /**
     * 作者主页url
     */
    @NotBlank(message = "作者主页url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String authorUrl;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 联系方式加密
     */
    @NotBlank(message = "联系方式加密不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactEncryption;

    /**
     * 联系方式
     */
    @NotBlank(message = "联系方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contact;


}
